import request from '@/utils/request'


export function getLeft(data) {
  return request({
    url: '/v1/frontend/user/get-left',
    method: 'post',
    data
  })
}

export function getJdUser(data) {
  return request({
    url: '/v1/frontend/user/get-jd-user',
    method: 'post',
    data
  })
}

export function indexCreate(data) {
  return request({
    url: '/v1/frontend/index/create',
    method: 'post',
    data
  })
}

export function CostShow(data) {
  return request({
    url: '/v1/frontend/push/cost-show',
    method: 'post',
    data
  })
}

export function patentIndex2(data) {
  return request({
    url: '/v1/frontend/user/patent-index02',
    method: 'post',
    data
  })
}

export function patentIndex(data) {
  return request({
    url: '/v1/frontend/user/patent-index',
    method: 'post',
    data
  })
}

export function pushDelete(data) {
  return request({
    url: '/v1/frontend/push/delete',
    method: 'post',
    data
  })
}

export function tuserList(data) {
  return request({
    url: '/v1/frontend/push/tuser-list',
    method: 'post',
    data
  })
}

export function getNowUser(data) {
  return request({
    url: '/v1/frontend/user/get-now-user',
    method: 'post',
    data
  })
}


export function editUser(data) {
  return request({
    url: '/v1/frontend/user/edit-user',
    method: 'post',
    data
  })
}

export function pushShow(data) {
  return request({
    url: '/v1/frontend/push/show',
    method: 'post',
    data
  })
}

export function UserGetCol(data) {
  return request({
    url: '/v1/frontend/user/get-col',
    method: 'post',
    data
  })
}

export function pushAdd(data) {
  return request({
    url: '/v1/frontend/push/add',
    method: 'post',
    data
  })
}

export function homeIndex(data) {
  return request({
    url: '/v1/frontend/index/index',
    method: 'post',
    data
  })
}

export function pushIndex(data) {
  return request({
    url: '/v1/frontend/push/index',
    method: 'post',
    data
  })
}

export function messageGetOpera(data) {
  return request({
    url: '/v1/frontend/message/get-opera',
    method: 'post',
    data
  })
}

export function messageUnsub(data) {
  return request({
    url: '/v1/frontend/message/unsub',
    method: 'post',
    data
  })
}

export function messageSend(data) {
  return request({
    url: '/v1/frontend/message/send',
    method: 'post',
    data
  })
}

export function messageDetail(data) {
  return request({
    url: '/v1/frontend/message/detail',
    method: 'post',
    data
  })
}

export function messageIndex(data) {
  return request({
    url: '/v1/frontend/message/index',
    method: 'post',
    data
  })
}

export function infoList(data) {
  return request({
    url: '/v1/frontend/patent/info-list',
    method: 'post',
    data
  })
}

export function rivalsDelete(data) {
  return request({
    url: '/v1/frontend/patent/rivals-delete',
    method: 'post',
    data
  })
}

export function rivalsAdd(data) {
  return request({
    url: '/v1/frontend/patent/add-rivals',
    method: 'post',
    data
  })
}

export function rivalsList(data) {
  return request({
    url: '/v1/frontend/patent/rivals-list',
    method: 'post',
    data
  })
}

export function UserPatentList(data) {
  return request({
    url: '/v1/frontend/user/patent-list',
    method: 'post',
    data
  })
}

export function DelMyPatent(data) {
  return request({
    url: '/v1/frontend/patent/delMyPatent',
    method: 'post',
    data
  })
}

export function UserGetCrc(data) {
  return request({
    url: '/v1/frontend/user/get-crc',
    method: 'post',
    data
  })
}

export function UserGetInc(data) {
  return request({
    url: '/v1/frontend/user/get-inc',
    method: 'post',
    data
  })
}

export function UserGetStatus(data) {
  return request({
    url: '/v1/frontend/user/get-status',
    method: 'post',
    data
  })
}

export function UserGetSqYear(data) {
  return request({
    url: '/v1/frontend/user/get-sq-year',
    method: 'post',
    data
  })
}

export function UserGetPdYear(data) {
  return request({
    url: '/v1/frontend/user/get-pd-year',
    method: 'post',
    data
  })
}

export function UserGetPdt(data) {
  return request({
    url: '/v1/frontend/user/get-pdt',
    method: 'post',
    data
  })
}

export function UserGetAdYear(data) {
  return request({
    url: '/v1/frontend/user/get-ad-year',
    method: 'post',
    data
  })
}

export function SserGetAsc(data) {
  return request({
    url: '/v1/frontend/user/get-asc',
    method: 'post',
    data
  })
}

export function search(data) {
  return request({
    url: '/v1/search/intelligence',
    method: 'post',
    data
  })
}

export function detail(data) {
  return request({
    url: '/v1/search/intro',
    method: 'post',
    data
  })
}

export function download(data) {
  return request({
    url: '/v1/search/download',
    method: 'post',
    data
  })
}

export function updatePwd(data) {
  return request({
    url: "/v1/backend/back-user/change-pass",
    method: 'post',
    data
  })
}

//需求列表
export function demandListOld(data) {
  return request({
    url: '/v1/visit/demandListOld',
    method: 'get',
    params: data
  })
}

//需求信息创建
export function createOldDemand(data) {
  return request({
    url: '/v1/visit/createOldDemand',
    method: 'post',
    data
  })
}

//需求查看详情
export function demandInfo(data) {
  return request({
    url: '/v1/visit/demandInfo',
    method: 'get',
    params: data
  })
}
//证书信息列表展示
export function indexCert(data) {
  return request({
    url: '/v1/certificate/index_cert',
    method: 'get',
    params: data
  })
}
//证书信息详情
export function infoCert(data) {
  return request({
    url: '/v1/certificate/info_cert',
    method: 'get',
    params: data
  })
}
//证书信息新增
export function createCert(data) {
  return request({
    url: '/v1/certificate/create_cert',
    method: 'get',
    params: data
  })
}
//证书信息删除---软删除
export function delCert(data) {
  return request({
    url: '/v1/certificate/del_cert',
    method: 'get',
    params: data
  })
}
//证书信息编辑
export function editCert(data) {
  return request({
    url: '/v1/certificate/edit_cert',
    method: 'post',
    data
  })
}
//证书类型列表
export function getType(data) {
  return request({
    url: '/v1/certificate/get_type',
    method: 'get',
    params: data
  })
}
//证书预警的查看详情
export function certificateList(data) {
  return request({
    url: '/v1/certificate/certificateList',
    method: 'get',
    params: data
  })
}
//专利首页详情
export function patentIndexNew(data) {
  return request({
    url: '/v1/certificate/patentIndex',
    method: 'post',
    data
  })
}
//申请中-专利新增
export function applyAdd(data) {
  return request({
    url: '/v1/certificate/applyAdd',
    method: 'post',
    data
  })
}
//证书预警的查看详情
export function applyList(data) {
  return request({
    url: '/v1/certificate/applyList',
    method: 'get',
    params: data
  })
}
//申请中-专利修改
export function applyEdit(data) {
  return request({
    url: '/v1/certificate/applyEdit',
    method: 'post',
    data
  })
}
//专利导入
export function agentimport(data) {
  return request({
    url: '/v1/import/agentimport',
    method: 'post',
    data
  })
}
//专利关注和取消关注
export function setFollow(data) {
  return request({
    url: '/v1/agent/follow',
    method: 'get',
    params: data
  })
}
//申请中-专利数据详情
export function patentList(data) {
  return request({
    url: '/v1/certificate/patentList',
    method: 'get',
    params: data
  })
}
//申请中专利导出
export function patentnews_export(data) {
  return request({
    url: '/v1/frontend/user/patentnews_export',
    method: 'post',
    data
  })
}
//导入 返回的信息导出
export function import_export(data) {
  return request({
    url: '/v1/frontend/user/import_export',
    method: 'post',
    data
  })
}
//首页-数据统计详情
export function quantity_detail(data) {
  return request({
    url: "/v1/backend/statistics/quantity_detail",
    method: 'get',
    params: data
  })
}

//首页-企业专利数据累计详情
export function get_chart(data) {
  return request({
    url: "/v1/region/get_chart",
    method: 'get',
    params: data
  })
}
//首页-企业专利数据累计详情
export function get_ten_chart(data) {
  return request({
    url: "/v1/region/get_ten_chart",
    method: 'get',
    params: data
  })
}
//重置密码
export function password(data) {
  return request({
    url: '/v1/news/user/password',
    method: 'post',
    data
  })
}